package com.blog.controller.adminmainpage;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.blog.controller.base.BaseServlet;
import com.blog.entity.UserEntity;

@WebServlet("/adminMainPage")
public class AdminMainPageServlet extends BaseServlet {
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
	}
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		//获得session里面的值
		 Object uname = req.getSession().getAttribute("uname");
		req.setAttribute("uname", uname);
		forward("admin/index");		
	}
}
